<?php
    setlocale(LC_TIME,"fr");
    $libJour= strftime("%A %d/%m/%Y");
?>
<script>
window.onload = HorlogeDynamique;

function mailRetourMessage(val)
{
   document.getElementById("emailNews").focus();
}

function inscritNews()
{
	var test=valide('M',document.getElementById("emailNews"));

	if (test!='')
    {
      message('mail', 'ERR',test,'Erreur','Ok','');
	  nomInput='emailNews';
  	  return;
  	}

   var parametres = 'emailNews=' + document.getElementById("emailNews").value;
	var myAjax = new Ajax.Updater("errNews", '/pages/entete/verifinscritnews.php',
					{
					method: 'get',
					parameters: parametres					});
}

</script>

<table width=100% border=0>
   <tr>
      <td colspan=2>
         <table width=100% border=0 class="lib gras">
            <tr>
               <td width=100%><?php echo $libJour ?></td>
               <td><div id=clock style="position:relative;"></div></td>
            </tr>
         </table>
      </td>
   </tr>
   <tr>
      <td colspan=2 height=5 width=100%><div class=traitOrange ></div></td>
   </tr>
   <tr>
      <td colspan=2 class="lib moyen" >Recevoir la news letter...</td>
   </tr>
   <tr>
      <td colspan=2 width=100%>
         <input type="text" class="arrondi_coupe" name="emailNews" id="emailNews" value="&#8250; votre Email"
            onfocus="if(this.value=='&#8250; votre Email') this.value='';"
            onBlur="if(this.value=='') this.value='&#8250; votre Email'" title="Veuillez saisir votre email">
         <input class="btn_ok" type="button" id=validnews name=validnews value="OK" onclick="javascript:inscritNews()">
      </td>
   </tr>
   <tr><td colspan=2><div id="errNews" class="lib moyen rouge">&nbsp;</div></td></tr>
</table>
